package cn.cy.creation.factorymethod.general;

/**
 * @author yangxq
 * @desc
 * @date 2025-05-13
 */
public class ShapeFactory {

    public static Shape createShape(String shapeType) {
        if (shapeType.equals("CIRCLE")) {
            return new Circle();
        } else if (shapeType.equals("SQUARE")) {
            return new Square();
        }
        return null;
    }

}
